/**
 * Created by Toma on 2016/9/11.
 * 个人中心
 */
define(['timepicker', 'tker-css'], function (require, exports, module) {
  "use strict";
  var cc = window.cc || {};

  /**
   * 充值
   */
  cc.cz = function () {
    // 充值
    $('.J_cz').on('click', function () {
      layer.open({
        type: 1,
        content: $('#isend'),
        title: false,
        close: false
      });
    });

  };

  /**
   * 交易记录
   */
  cc.jyIndex = function () {
    /**
     * 时间插件
     */
    $('.form_datetime').datetimepicker({
      language: 'zh-CN',
      weekStart: 1,
      todayBtn: 1,
      autoclose: 1,
      todayHighlight: 1,
      startView: 2,
      forceParse: 0,
      showMeridian: 1,
      minView: 2,
      format: "yyyy-mm-dd"
    });

    // 点击筛选项
    $('.app-sxk label').click(function () {
      $(this).addClass('active')
        .siblings().removeClass('active')
        .siblings('input').val($(this).html());
    });
  };

  /**
   * 账户信息
   */
  cc.accountInfo = function () {
    $('.J_edithead').on('click',function () {
      $('#addhead').modal();
    });
  };

  module.exports = cc;
});